package com.mrxuxu.common.log;

import org.apache.log4j.Logger;

/**
 * 日志输出工具类
 * create by 徐智伟
 */
public class Log {

    public final static Logger logger = Logger.getLogger("BASELog");

    public static void info(String info) {
        logger.info(info);
    }

    public static void info(Class cls,String info) {
        logger.info(cls.getSimpleName()+"->"+info);
    }

    public static void debug(String debug) {
        logger.debug(debug);
    }

    public static void debug(Class cls,String debug) {
        logger.debug(cls.getSimpleName()+"->"+debug);
    }

    public static void error(String error) {
        logger.error(error);
    }

    public static void error(Class cls,String error) {
        logger.error(cls.getSimpleName()+"->"+error);
    }

    public static void warn(String warn) {
        logger.warn(warn);
    }

    public static void warn(Class cls,String warn) { logger.warn(cls.getSimpleName()+"->"+warn);}
}
